package com.samebuilding.domain;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Photo entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Photo implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer userNo;
	private Date date;

	private Integer categoryCode;
	private String url;
	private String thumbnailUrl;
	private Boolean verified=false;
	private Long order;
	private String fileName;
	private Set<User> viewers=new HashSet<User>();
	private int viewCount=0;
	// Constructors



	public int getViewCount() {
		return viewCount;
	}

	public void setViewCount(int viewCount) {
		this.viewCount = viewCount;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public Long getOrder() {
		return order;
	}

	public void setOrder(Long order) {
		this.order = order;
	}

	public Boolean getVerified() {
		return verified;
	}

	public void setVerified(Boolean verified) {
		this.verified = verified;
	}

	/** default constructor */
	public Photo() {
	}

	public String getThumbnailUrl() {
		return thumbnailUrl;
	}

	public void setThumbnailUrl(String thumbnailUrl) {
		this.thumbnailUrl = thumbnailUrl;
	}

	/** minimal constructor */
	public Photo(Integer userNo, String url) {
		this.userNo = userNo;
		this.url = url;
	}

	/** full constructor */
	public Photo(Integer userNo, Date date, 
			Integer categoryCode, String url) {
		this.userNo = userNo;
		this.date = date;
		this.categoryCode = categoryCode;
		this.url = url;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserNo() {
		return this.userNo;
	}

	public void setUserNo(Integer userNo) {
		this.userNo = userNo;
	}

	public Date getDate() {
		return this.date;
	}

	public void setDate(Date date) {
		this.date = date;
	}


	public Integer getCategoryCode() {
		return this.categoryCode;
	}

	public void setCategoryCode(Integer categoryCode) {
		this.categoryCode = categoryCode;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Set<User> getViewers() {
		return viewers;
	}

	public void setViewers(Set<User> viewers) {
		this.viewers = viewers;
	}

}